﻿@{
    ViewBag.Title = "Index";
    Layout = null;

    S4Store.Domain.Administrator CurrentUser = (S4Store.Domain.Administrator)ViewBag.CurrentUser;
}
<div class="listpage verticalSplitContainer" style="height:100%;"  >
<form method="post" action="@Url.Action("Query")" ratio="#92">
    <div class="querybar">
        <table class="querytable">
            <tbody><tr>
                       <td>
                           <div class="queryitem">
                               <span class="querytitle">店名：</span><input type="text" name="Name" class="textInput">
                           </div>
                       </td>
                       <td>
                           <div class="queryitem">
                               <span class="querytitle">联系人：</span><input type="text" name="Contact" class="textInput">
                           </div>
                       </td>
                       <td>
                           <div class="queryitem">
                               <span class="querytitle">电话：</span><input type="text" name="Tel" class="textInput">
                           </div>
                       </td>
                   </tr>
                   <tr>
                       <td>
                           <div class="queryitem">
                               <span class="querytitle">品牌名称：</span>@Html.Action("Select","Pinpai")
                           </div>
                       </td>
                       <td>
                           <div class="queryitem">
                               <span class="querytitle">地址：</span><input type="text" name="Address" class="textInput">
                           </div>
                       </td>
                       <td>
                            <div class="queryitem">
                               <span class="querytitle">经销商代码：</span><input type="text" name="Code" class="textInput">
                           </div>
                       </td>
                   </tr>
            </tbody></table>
        <div class="querybuttonbar">
            <div class="simplebutton"><div class="r"><button type="button" class="submit">检索</button></div></div>
        </div>
        <div class="clear"></div>
    </div>
</form>
@if (CurrentUser.Position == S4Store.Domain.Position.SystemManager)
{
<div class="panelBar"  ratio="#25">
	<ul class="toolBar">
		<li class=""><a target="dialog" href="@Url.Action("Add")" backtype="html" refreshonclose="true"><span class="icon add">添加店铺</span></a></li>
        <li class=""><a target="dialog" href="@Url.Action("Modify")" backtype="html" refreshonclose="true" beforechk="link.onlySelectOne()"  postdata="{id:link.getSelectid()}"><span class="icon edit">修改店铺资料</span></a></li>
	@*	<li class=""><a confirm="确定要删除吗?" target="ajax" href="@Url.Action("Delete")" backtype="refresh" postdata="{ids:link.getSelectids()}"><span  class="icon delete">删除店铺</span></a></li>*@
	</ul>
</div>
}
<div  ratio="*" class="verticalSplitContainer dataRefresh">
@Html.Action("Query")
</div>
</div>